package com.uqbar.asteroids.components;

import java.awt.Graphics2D;


public class RedBoom extends PlayerShip {
	 
	 public RedBoom(){
		 super(300,100,15,22,0,0);	 
	 }
	 
	public void render(Graphics2D graphics) {
		super.render(graphics);
	}
	 
	public void shoot(Vector2D orientacion){

		if(this.getScene().getDisparos().isEmpty()){
			this.getScene().agregarDisparo(new StandardShoot(this.getX()+10, this.getY()+8, 1, orientacion));
		}else{
				CircleShoot disparo =	this.getScene().obtenerDisparo();
				disparo.setX(this.getX()+10);
				disparo.setY(this.getY()+8);
				disparo.setGrupo(1);
				disparo.setVelocidad(orientacion);
				disparo.applyBulletSpeed();
				disparo.activar();

		}
	}
	
	
	 
	 public void hasHit(){
      //cuando es impactado se calcula el daño del proyectil - defensa	 
	 }
	 

	
	 
}
